import { defineStore } from 'pinia'

export const usePhotoStore = defineStore('photos', {
  state: () => ({
    allPhotos: [],
    selectedIds: new Set<string>(),
    filters: {
      faceRecognition: true,
      locationTagging: false
    }
  }),
  actions: {
    async uploadPhotos(files: File[]) {
      // 包含EXIF解析和AI分类逻辑
    }
  },
  getters: {
    filteredPhotos: (state) => {
      return state.allPhotos.filter(photo => 
        state.filters.faceRecognition ? photo.hasFace : true
      )
    }
  }
})